import request from '@/utils/request'

// 查询华为云列表
export function listHuaweiCloudList(params) {
  return request({
    url: '/manager/hwy_template/list',
    method: 'get',
    params
  })
}
// 新增华为云
export function addHuaweiCloud(data) {
  return request({
    url: '/manager/hwy_template/insert',
    method: 'post',
    data
  })
}

// 修改华为云
export function updateHuaweiCloud(data) {
  return request({
    url: '/manager/hwy_template/update',
    method: 'put',
    data
  })
}

// 删除华为云
export function delHuaweiCloud(ids) {
  return request({
    url: `/manager/hwy_template/batchDelete/${ids}`,
    method: 'delete'
  })
}

//  置顶华为云
export function topHuaweiCloud(data) {
  return request({
    url: `/manager/hwy_template/top`,
    method: 'post',
    data
  })
}